<?php

/*

Process Edit Buddy Note (buds_edit.pro.php)

*/
ob_start();
$rank_check = 1;
include "header.inc.php";

$note = smilies(badwords(strip_tags($edit_note,"<b><i><u><a><font>")));

mysql_query("DELETE FROM buds2 WHERE bud_you = '$edit_bud' AND bud_me = '$userid'");
mysql_query("INSERT INTO buds2 VALUES ('','$userid','$edit_bud','$note')");

header(error("buds.php?game=$game","Your buddy note has been updated."));

?>